package com.yunfangdata.service;


import com.yunfangdata.domain.Permission;
import com.yunfangdata.query.QueryObject;
import com.yunfangdata.util.PageResult;

import java.util.List;

public interface IPermissionService {

    void save(Permission entity);

    void delete(Long id);

    void update(Permission entity);

    Permission get(Long id);

    PageResult query(QueryObject qo);

    void load();

    /**
     * 所有权限
     * @param qo
     * @return
     */
    List<Permission> permissions();
    /**
     * 根据角色id 查询相应权限
     * @return
     */
    List<Permission> permissionsByRoleId(Long id);

    List<String> queryResourceByEmployeeId(Long id);
}
